#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int strStr(char* haystack, char* needle) {
    int count = 0;
    while (*haystack)
    {
        int j = 0;
        for (j = 0; j < strlen(needle); j++)
        {
            if (*(haystack + j) != *(needle + j))
                break;
        }
        if (j == strlen(needle))
            return count;
        count++;
        haystack++;
    }
    return -1;
}


